﻿<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
             xmlns:ctrl="clr-namespace:MediaOwl.Common.ControlTemplates"
             x:Class="MediaOwl.Common.Views.DialogMessageView"
             mc:Ignorable="d"
             d:DesignHeight="300"
             d:DesignWidth="504">
    <ctrl:DialogControl Title="{Binding DisplayName}"
                        MinWidth="350"
                        MaxWidth="500"
                        MinHeight="190">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <toolkit:DockPanel Margin="0,0,0,10"
                               d:LayoutOverrides="Width"
                               MinHeight="90">
            	<ScrollViewer BorderBrush="#00404040" ScrollViewer.VerticalScrollBarVisibility="Auto">
            		<TextBlock x:Name="DialogMessage"
            			TextWrapping="Wrap"
            			FontSize="14.667"/>
            	</ScrollViewer>
            </toolkit:DockPanel>
            <StackPanel Orientation="Horizontal"
                        Grid.Row="1"
                        HorizontalAlignment="Right">
                <Button x:Name="Ok"
                        Content="Ok"
                        HorizontalAlignment="Right"
                        Visibility="{Binding HasOk, Converter={StaticResource visibilityConverter}}"
                        Margin="5,0,0,0"
                        Width="75" />
                <Button x:Name="Yes"
                        Content="Yes"
                        HorizontalAlignment="Right"
                        Visibility="{Binding HasYes, Converter={StaticResource visibilityConverter}}"
                        Margin="5,0,0,0"
                        Width="75" />
                <Button x:Name="No"
                        Content="No"
                        HorizontalAlignment="Right"
                        Visibility="{Binding HasNo, Converter={StaticResource visibilityConverter}}"
                        Margin="5,0,0,0"
                        Width="75" />
                <Button x:Name="Ignore"
                        Content="Ignore"
                        HorizontalAlignment="Right"
                        Visibility="{Binding HasIgnore, Converter={StaticResource visibilityConverter}}"
                        Margin="5,0,0,0"
                        Width="75" />
                <Button x:Name="Retry"
                        Content="Retry"
                        HorizontalAlignment="Right"
                        Visibility="{Binding HasRetry, Converter={StaticResource visibilityConverter}}"
                        Margin="5,0,0,0"
                        Width="75" />
                <Button x:Name="Cancel"
                        Content="Cancel"
                        HorizontalAlignment="Right"
                        Visibility="{Binding HasCancel, Converter={StaticResource visibilityConverter}}"
                        Margin="5,0,0,0"
                        Width="75" />
            </StackPanel>
        </Grid>
    </ctrl:DialogControl>
</UserControl>
